#include <iostream>

int main()
{
	int base, exp;
	int result = 1;
	std::cin >> base >> exp;
	for (int i = 0; i < exp; i++)
	{
		result *= base;	
	}
	std::cout << result << std::endl;

	return 0;
}
